import { request } from "@/utils/http";

export const getGoodsDetailAPI = (id) => {
  return request({
    url: "/goods",
    data: { id },
  });
};

export const getGoodsRelevantAPI = (id, limit = 4) => {
  return request({
    url: "/goods/relevant",
    data: {
      id,
      limit,
    },
  });
};